package dao

import (
	"time"
)

// 这是 LiMemberEvaluation 的全局公开dao对象
var LiMemberEvaluationDao = liMemberEvaluationDao{}

// 这是 li_member_evaluation表 的实体类
type LiMemberEvaluation struct {
	Id               int       `json:"id" form:"id" v:"id"`                                              // ID
	CreateBy         string    `json:"create_by" form:"create_by" v:"create_by"`                         // 创建者
	CreateTime       time.Time `json:"create_time" form:"create_time" v:"create_time"`                   // 创建时间
	DeleteFlag       bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`  // 删除标志 true/false 删除/未删除
	UpdateBy         string    `json:"update_by" form:"update_by" v:"update_by"`                         // 更新者
	UpdateTime       time.Time `json:"update_time" form:"update_time" v:"update_time"`                   // 更新时间
	Content          string    `json:"content" form:"content" v:"content"`                               // 评价内容
	GoodsId          string    `json:"goods_id" form:"goods_id" v:"goods_id"`                            // 商品ID
	GoodsImage       string    `json:"goods_image" form:"goods_image" v:"goods_image"`                   // 商品图片
	GoodsName        string    `json:"goods_name" form:"goods_name" v:"goods_name"`                      // 商品名称
	Grade            string    `json:"grade" form:"grade" v:"grade"`                                     // 好中差评
	HaveImage        bool      `json:"have_image" form:"have_image" v:"have_image"`                      // 评价是否有图片
	HaveReplyImage   bool      `json:"have_reply_image" form:"have_reply_image" v:"have_reply_image"`    // 回复是否有图片
	Image            string    `json:"image" form:"image" v:"image"`                                     // 评价图片
	MemberId         string    `json:"member_id" form:"member_id" v:"member_id"`                         // 会员ID
	MemberName       string    `json:"member_name" form:"member_name" v:"member_name"`                   // 会员名称
	MemberProfile    string    `json:"member_profile" form:"member_profile" v:"member_profile"`          // 会员头像
	OrderNo          string    `json:"order_no" form:"order_no" v:"order_no"`                            // 订单号
	Reply            string    `json:"reply" form:"reply" v:"reply"`                                     // 评价回复
	ReplyImage       string    `json:"reply_image" form:"reply_image" v:"reply_image"`                   // 评价回复图片
	StoreId          string    `json:"store_id" form:"store_id" v:"store_id"`                            // 店铺ID
	SkuId            string    `json:"sku_id" form:"sku_id" v:"sku_id"`                                  // 货品ID
	Status           string    `json:"status" form:"status" v:"status"`                                  // 状态
	ReplyStatus      bool      `json:"reply_status" form:"reply_status" v:"reply_status"`                // 回复状态
	DeliveryScore    int       `json:"delivery_score" form:"delivery_score" v:"delivery_score"`          // 物流评分
	DescriptionScore int       `json:"description_score" form:"description_score" v:"description_score"` // 描述评分
	ServiceScore     int       `json:"service_score" form:"service_score" v:"service_score"`             // 服务评分
	StoreName        string    `json:"store_name" form:"store_name" v:"store_name"`                      // 店铺名称
	Images           string    `json:"images" form:"images" v:"images"`
}

// 注意:这是 LiMemberEvaluation 的私有dao对象
type liMemberEvaluationDao struct {
	Insert func(arg LiMemberEvaluation) int                //插入一条记录
	Update func(arg LiMemberEvaluation) int                //更新一条记录
	Delete func(arg LiMemberEvaluation) int                //删除一条记录
	Select func(arg LiMemberEvaluation) LiMemberEvaluation //获取一条记录
}
